package org.dromara.wechat.domain.vo;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.wechat.domain.UmsMember;

import java.io.Serial;
import java.io.Serializable;


/**
 * 会员视图对象 ums_member
 *
 * @author Lion Li
 * @date 2024-06-12
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UmsMember.class)
public class UmsMemberVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String tenantId;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long memberLevelId;

    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名")
    private String username;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码")
    private String password;

    /**
     * 昵称
     */
    @ExcelProperty(value = "昵称")
    private String nickname;

    /**
     * 手机号码
     */
    @ExcelProperty(value = "手机号码")
    private String phone;

    /**
     * 用户性别（0男 1女 2未知）
     */
    @ExcelProperty(value = "用户性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /**
     * 帐号启用状态:0->禁用；1->启用
     */
    @ExcelProperty(value = "帐号启用状态:0->禁用；1->启用")
    private Long status;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像")
    private String icon;

    /**
     * 性别：0->未知；1->男；2->女
     */
    @ExcelProperty(value = "性别：0->未知；1->男；2->女")
    private Long gender;

    /**
     * 生日
     */
    @ExcelProperty(value = "生日")
    private Date birthday;

    /**
     * 所做城市
     */
    @ExcelProperty(value = "所做城市")
    private String city;

    /**
     * 职业
     */
    @ExcelProperty(value = "职业")
    private String job;

    /**
     * 个性签名
     */
    @ExcelProperty(value = "个性签名")
    private String personalizedSignature;

    /**
     * 用户来源
     */
    @ExcelProperty(value = "用户来源")
    private Long sourceType;

    /**
     * 最后登录IP
     */
    @ExcelProperty(value = "最后登录IP")
    private String loginIp;

    /**
     * 最后登录时间
     */
    @ExcelProperty(value = "最后登录时间")
    private Date loginDate;
    /**
     * 用户类型
     */
    private String  userType;


}
